const session = require('koa-router')()

session
	.get('/set', async (ctx) => {
		ctx.session.username = 'zhansgan'
		ctx.body = "session"
	})
	.get('/get', async ctx => {
		ctx.body = ctx.session.username
	})
	.get('/test', async ctx => {
		ctx.body = ctx.session.username || '找不到'
	})

module.exports = session